import java.util.Random;
public class suym {
    public static void main(String[] args) {
        Random rand = new Random();
        int [] num  = new int[10];
        int sum = 0;
        int count = 0;
        for (int i = 0; i < 10; i++) {
            int x = rand.nextInt(100)+1;
            num[i] = x;
            sum += x;
            System.out.println(x);
            if (num[i] < sum/10){
                count++;
            }
        }
        System.out.println("生成随机数的和为："+sum);
        System.out.println("生成随机数的平均数为："+sum/10);
        System.out.println("小于平均数的个数为："+count);
    }
}
 